<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Progma" content="no-cache" />
<link rel="stylesheet" href="<%=request.getContextPath()%>/css/mm_training.css" type="text/css" />
<link rel="stylesheet" href="<%=request.getContextPath()%>/css/user.css" type="text/css" />
<link type="text/css" href="<%=request.getContextPath()%>/css/smoothness/jquery-ui-1.7.1.custom.css" rel="stylesheet" />
<script type="text/javascript" src="<%=request.getContextPath()%>/scripts/jquery/jquery-1.3.2.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/scripts/jquery/jquery-ui-1.7.1.custom.js"></script>
<script type="text/javascript">
	/** 重命名jQuery */
	$j = jQuery.noConflict();
</script>
<script type="text/javascript" src="<%=request.getContextPath()%>/scripts/prototype/prototype-1.6.0.3.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/scripts/XunjiaUtils.js"></script>
<script type="text/javascript">
	function goNextPage() {
		var context = '<%=request.getContextPath()%>/registion/';
		document.location.href = context + "uploadImage.do";
	}
	function goPreviousPage() {
		document.location.replace("goRegiste.do");
	}
</script>
<style type="text/css">
td {
	font-size: 12px;
}

span {
	color: red;
}

body {
	font-size: 12px;
}

.err_msg {
	color: red;
}
</style>
<title>建立广告</title>
</head>
<body bgcolor="#64748B">
<form action="<%=request.getContextPath()%>/registion/uploadImage.do" enctype="application/x-www-form-urlencoded" id="registionForm" name="registionForm" method="POST">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr bgcolor="#26354A">
		<td width="15" nowrap="nowrap"><img src="<%=request.getContextPath()%>/images/mm_spacer.gif" alt="" width="15" height="1" border="0" /></td>
		<td height="70" colspan="3" class="logo" nowrap="nowrap">Yam廣告聯盟<span class="tagline">| yam of sichuan</span></td>
		<td width="40">&nbsp;</td>
		<td width="100%">&nbsp;</td>
	</tr>
	<tr bgcolor="#FF6600">
		<td colspan="6"><img src="<%=request.getContextPath()%>/images/mm_spacer.gif" alt="" width="1" height="4" border="0" /></td>
	</tr>
	<tr bgcolor="#D3DCE6">
		<td colspan="6"><img src="<%=request.getContextPath()%>/images/mm_spacer.gif" alt="" width="1" height="1" border="0" /></td>
	</tr>
	<tr bgcolor="#FFCC00">
		<td width="15" nowrap="nowrap">&nbsp;</td>
		<td width="705" colspan="3" height="24">
		<table border="0" cellpadding="0" cellspacing="0" id="navigation">
			<tr>
				<td class="navText" align="center" nowrap="nowrap"><a href="<%=request.getContextPath()%>/index.do">返回首页</a></td>
				<td class="navText" align="center" nowrap="nowrap"></td>
				<td class="navText" align="center" nowrap="nowrap"></td>
				<td class="navText" align="center" nowrap="nowrap"></td>
				<td class="navText" align="center" nowrap="nowrap"></td>
				<td class="navText" align="center" nowrap="nowrap"></td>
			</tr>
		</table>
		</td>
		<td width="40"></td>
		<td width="100%"></td>
	</tr>
	<tr bgcolor="#D3DCE6">
		<td colspan="6"><img src="<%=request.getContextPath()%>/images/mm_spacer.gif" alt="" width="1" height="1" border="0" /></td>
	</tr>
	<tr bgcolor="#FF6600">
		<td colspan="6"><img src="<%=request.getContextPath()%>/images/mm_spacer.gif" alt="" width="1" height="4" border="0" /></td>
	</tr>
	<tr bgcolor="#D3DCE6">
		<td width="230" valign="top" bgcolor="#26354a" colspan="2">
		<table width="230" bgcolor="#26354a" cellspacing="0" cellpadding="0" border="0">
			<tr>
				<td width="230" class="pageName" style="font-size: 14px;"><a href="<%=request.getContextPath() %>/registion/keword.do?previous=userDetail">建立关键字广告</a></td>
			</tr>
			<tr>
				<td width="230" class="pageName" style="font-size: 14px;"><a href="#">建立图片广告</a></td>
			</tr>
		</table>
		</td>
		<td width="50" valign="top"><img width="50" height="1" border="0" alt="" src="<%=request.getContextPath()%>/images/mm_spacer.gif" /></td>
		<td width="440" valign="top">
		<table width="721" border="0" bgcolor="#D3DCE6" align="center" cellpadding="0" cellspacing="0">
			<tr>
				<td width="51%" align="left" colspan="2" style="font-size: 16px">建立图片广告</td>
			</tr>
			<tr>
				<td width="10%" align="left">選擇廣告位置</td>
				<td width="51%" align="left">
					<select id="position" name="position">
						<option value="1">詢價網-首頁</option>
						<option value="2">詢價網-檢索結果頁</option>
						<option value="3">詢問-首頁</option>
						<option value="4">詢問-單文章頁面</option>
					</select>
					點擊一下位置,就可以購買廣告了!
				</td>
			</tr>
			<tr>
				<td width="51%" align="center" colspan="2" height="200">页面图片示例</td>
			</tr>
			<tr>
				<td width="51%" align="right"><input type="button" name="preStep" id="preStep" value="上一步" onclick="goPreviousPage();"/></td>
				<td width="51%" align="left"><input type="submit" name="nextStep" id="nextStep" value="下一步"/></td>
			</tr>
		</table>
		</td>
		<td width="40">&nbsp;<input type="hidden" name="previous" value="img" id="previous"/></td>
		<td width="100%">&nbsp;</td>
	</tr>
	<tr bgcolor="#D3DCE6">
		<td colspan="6"><img src="<%=request.getContextPath()%>/images/mm_spacer.gif" width="1" height="1" border="0" /></td>
	</tr>
</table>
</form>
<script type="text/javascript">
	function init() {
		// 获取广告对象
		var cookieInfo = CookieUtils.getJSONValue('COOKIE_REGISTE_ADVERTISEMENT_IMAGE');
		// 设置关键字
		$j("#position").val(StringUtils.getString(cookieInfo.pid));
	}
	init();
</script>
</body>
</html>